
import unittest
# 导入两个测试用例的模块
import testCaseA
import testCaseB

# 构造测试集
testSuit = unittest.TestSuite()
testSuit.addTest(testCaseA.TestCaseA("test_a1"))
# testSuit.addTest(testCaseA.TestCaseA("test_a2"))
testSuit.addTest(testCaseB.TestCaseB("test_b1"))
testSuit.addTest(testCaseB.TestCaseB("test_b2"))

if __name__ == "__main__":
# 运行测试集
    runner = unittest.TextTestRunner();
    runner.run(testSuit)
